import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/exercise',
      name: 'Exercise',
      component: () => import('@/views/exercise/index.vue'),
      meta: {
        title: '练习',
        icon: 'iconfont icon-dingdan1',
        keepAlive: true,
        whiteList: true
      }
    },
    {
      path: '/Login',
      name: 'Login',
      component: () => import('@/views/login.vue'),
      meta: {
        title: '登录',
        icon: 'iconfont icon-dingdan1',
        keepAlive: true,
        whiteList: true
      }
    }
  ]
})
